9641b4
@@ -53,6 +53,11 @@
public void Authenticate(String user, String password) throws AuthenticationExce
       user  = user + "@" + ldapDomain;
     }
 
+    if (password == null || password.isEmpty()) {
+      throw new AuthenticationException("Error validating LDAP user:" +
+          " a null or blank password has been provided");
+    }
+
     // setup the security principal
     String bindDN;
     if (baseDN == null) {
